package com.zenithmind.classroom.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 章节更新DTO
 * 
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@Data
@Schema(description = "章节更新DTO")
public class ChapterUpdateDTO {

    /**
     * 章节标题
     */
    @Size(min = 1, max = 100, message = "章节标题长度必须在1-100之间")
    @Schema(description = "章节标题", example = "第一章：Java基础")
    private String title;

    /**
     * 章节描述
     */
    @Size(max = 500, message = "章节描述长度不能超过500")
    @Schema(description = "章节描述", example = "本章介绍Java的基础语法和概念")
    private String description;

    /**
     * 章节内容
     */
    @Schema(description = "章节内容")
    private String content;

    /**
     * 排序值
     */
    @Schema(description = "排序值", example = "1")
    private Integer sortOrder;

    /**
     * 状态（0-草稿，1-发布，2-下线）
     */
    @Schema(description = "状态（0-草稿，1-发布，2-下线）", example = "1")
    private Integer status;

    /**
     * 是否免费（0-收费，1-免费）
     */
    @Schema(description = "是否免费（0-收费，1-免费）", example = "1")
    private Integer isFree;

    /**
     * 预计学习时长（分钟）
     */
    @Schema(description = "预计学习时长（分钟）", example = "60")
    private Integer estimatedDuration;

    /**
     * 学习目标
     */
    @Schema(description = "学习目标")
    private String learningObjectives;

    /**
     * 前置知识
     */
    @Schema(description = "前置知识")
    private String prerequisites;
}
